<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/grid.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css?2" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="wrapper container_12">

	<div class="header block grid_12">
		<span class="logo"><a href="/"><?php echo CHtml::encode(Yii::app()->name); ?></a></span>
		<?php $this->widget('zii.widgets.CMenu',array(
			'id'=>'menu',
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/home')),
				array('label'=>'Forums', 'url'=>array('/forums')),
				array('label'=>'Threads', 'url'=>array('/threads')),
				array('label'=>'Users', 'url'=>array('/users')),
				array('label'=>'Login', 'url'=>array('/auth/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/auth/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div>
	
	<div class="content block grid_10">
		<?php echo $content; ?>
	</div>

	<div class="footer block grid_12">
		Copyright &copy; <?php echo date('Y'); ?> by Xine and Weee.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div>

</div>

</body>
</html>